package protocol;

import java.io.Serializable;

public class Reply implements Serializable{
	
	/**
	 * UID
	 */
	private static final long serialVersionUID = -2282466853783127045L;
	private return_value ReturnType;
	private String[] Parameter;
	
	public Reply(return_value ret){
		ReturnType = ret;
	}
	public Reply(return_value ret, String[] par){
		ReturnType = ret;
		Parameter = par;
	}
		
	public String[] getParameter(){
		return Parameter;
	}
	
	public return_value getReturnType(){
		return ReturnType;
	}
	
	public enum return_value { 
		LOGIN_VALID, 	LOGIN_FAILED, LOGIN_INVALIDPW,	LOGIN_ALREADY, LOGIN_BANNED,
		LOGOUT_VALID, 	LOGOUT_FAILED,
		SEARCH_ACCOUNT_VALID, SEARCH_ACCOUNT_FAILED				
	};
	
}
